<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/top.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<title>微博账号管理</title>
		<link rel="stylesheet" href="<%=basePath%>/css/global.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/style.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/vscroll.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/hscroll.css" />

		<script src="<%=basePath%>/js/SpryTabbedPanels.js"	type="text/javascript"></script>
		<script src="<%=basePath%>/js/swfobject.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/jquery.imageScroller.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/hscroll.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/vscroll.js" type="text/javascript"></script>
		<script src="<%=basePath%>/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
		<link href="<%=basePath%>/css/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
		<script src="<%=basePath%>/js/jquery.form.js" type="text/javascript"></script>
		<link rel="stylesheet" href="<%=basePath%>/css/dialog.form.css"
			type="text/css" />
		<link type="text/css" href="<%=basePath%>/css/themes/base/ui.all.css"
			rel="stylesheet" />
		<script src="<%=basePath%>/js/pages/blogger/wbManage.js" type="text/javascript"></script>
		<style type="text/css">
#mb_main {
	border: 1px solid #82BBDD;
}

#mb_right {
	border: 1px solid #82BBDD;
}

#formInput input {
	line-height: 25px;
	height: 25px;
	width: 150px;
	margin: 0 auto;
}

.dingdanTable {
	width: 100%;
	border: 2px solid #F00;
	margin-bottom: 20px;
}

.dingdanTable tr td {
	border: 2px solid #F00;
}

#searchComp span {
	float: left;
	margin-right: 10px;
}

#searchComp input {
	float: left;
	margin-right: 10px;
}

#dataTable tr td {
	border: 1px solid #999;
}
</style>
<script type="text/javascript">
$(function(){
	$("#h_nav ul li a").eq(1).addClass("nav_selected");
	addClick2SearchForm();
});
function addClick2SearchForm(){
$("#searchAccountBtn").click(function(){
	$("#searchForm").submit();
});
}
</script>
	</head>
	<body>
		<div id="container">
			<div>
				<div id="dialog" title="Create new user">
					<p id="validateTips">
						All form fields are required.
					</p>

					<form id="addForm" name="addForm" method="post" action="<%=basePath %>/blogger/weiboManageAction/addWeiboAccount.ad">
						<fieldset>
							<label for="platform">
								微博平台
							</label>
							<select id="platform" name="weibo.platform" style="width: 250px;">
								<option value="1">
									新浪微博
								</option>
								<option value="2">
									腾讯微博
								</option>
							</select>
							<label for="nickname">
								微博昵称
							</label>
							<input type="text" id="nickname" name="weibo.nickname" value=""
								class="text ui-widget-content ui-corner-all" />
							<label for="priceDirect">
								直发价格
							</label>
							<input type="text" name=weibo.priceDirect id="priceDirect"
								value="" class="text ui-widget-content ui-corner-all" />
							<label for="priceTransmit">
								转发价格
							</label>
							<input type="text" name="weibo.priceTransmit" id="priceTransmit"
								value="" class="text ui-widget-content ui-corner-all" />
						</fieldset>
					</form>
				</div>
			</div>
			<!--logo到导航条的内容-->
			<jsp:include page="head.jsp" flush="true"></jsp:include>
			<!--end heaer-->
			<div id="mainBody">
				<div style="text-align: left;">
					${user.username }的微博账号
				</div>
				<table id="dataTable" width="100%" border="1">
					<tr>
						<td colspan="10" id="searchComp">
							<span>按账号名称查找:</span>
							<form id="searchForm" name="searchForm"
								action="<%=basePath%>/blogger/weiboManageAction/searchByName.ad"
								method="post">
								<input id="weiboUser" type="text" name="weibo.nickname" />
								<input id="searchAccountBtn" type="button" name="searchAccount"
									value="查询" />
								<input id="addAcount" type="button" name="addAcount"
									value="添加账号" />
							</form>
						</td>
					</tr>
					<tr>
						<td>
							微博平台
						</td>
						<td>
							微博账号
						</td>
						<td>
							粉丝量
						</td>
						<td>
							转发价
						</td>
						<td>
							直发价
						</td>
						<td>
							是否接单
						</td>
						<td>
							是否直发
						</td>
						<td>
							是否硬推广
						</td>
						<td>
							审核状态
						</td>
						<td>
							查看详情
						</td>
					</tr>
					<s:if test="not empty(weiboAccounts)">
						<s:iterator value="weiboAccounts" status="statu" id="account">
							<tr>
								<td height="38" align="center">
									<s:if test="#account.platform==1">
							新浪微博
							</s:if>
									<s:if test="#account.platform==2">
							腾讯微博
							</s:if>
								</td>
								<td align="left" style="text-indent: 12px;">
									<span class="blue"><a href="http://weibo.com/1147444385"
										class="bluelink" target=_blank><s:property
												value="nickname" /> </a> </span>
								</td>
								<td align="center">

									<s:property value="fansNum" />
								</td>
								<td align="center">
									<div style="width: 80px;" class="ma" open="false" type="2"
										account_id="8757">
										<s:property value="priceTransmit" />
										<span class="blue"></span>
									</div>
								</td>
								<td align="center">
								
									<div style="width: 80px;" class="ma" open="false" type="1"
										account_id="8757">

										<s:property value="priceDirect" />
										<span class="blue"></span>
									</div>
								</td>

								<td align="center">
									<select account_id="8757" id="yes_shield">
										<option value="1"
											<s:if test="#account.accessOrder==1">selected="selected"</s:if>>
											是
										</option>
										<option value="0"
											<s:if test="#account.accessOrder==0">selected="selected"</s:if>>
											否
										</option>
									</select>
								</td>

								<td align="center">
									<select account_id="8757" id="shield">
										<option value="1"
											<s:if test="#account.isDirect==1">selected="selected"</s:if>>
											是
										</option>
										<option value="0"
											<s:if test="#account.isDirect==0">selected="selected"</s:if>>
											否
										</option>
									</select>
								</td>

								<td align="center">
									<select account_id="8757" id="shield">
										<option value="1"
											<s:if test="#account.accessHardAd==1">selected="selected"</s:if>>
											是
										</option>
										<option value="0"
											<s:if test="#account.accessHardAd==0">selected="selected"</s:if>>
											否
										</option>
									</select>
								</td>
								<td align="center">
									<s:if test="#account.verify==1">
							审核通过
							</s:if>
									<s:elseif test="#account.verify==0">
							待审核
							</s:elseif>
									<s:elseif test="#account.verify==2">
							审核未通过
							</s:elseif>
								</td>
								<td align="center">
									<a href="<s:property value='url'/>" target='_blank'
										class="bluelink">查看详情(其实就是账号地址)</a>
								</td>
							</tr>
						</s:iterator>

					</s:if>
					<s:else>
						<tr>
							<td colspan="8">
								您没有微博账号，请添加！
							</td>

						</tr>
					</s:else>



				</table>

			</div>

			<!--end mainBody-->
			<div id="foot">
				<div id="contact">
					<a href="">关于我们</a>|
					<a href="">联系我们</a>|
					<a href="">加入我们</a>
				</div>
				<div id="copyright">
					版权所有 © 北京祥睿博通科技有限公司 2011-2012 . 京ICP备:******号.
				</div>
			</div>
		</div>
		<script type="text/javascript">
	
</script>
	</body>
</html>
